package com.wjb.springcloud.pojo;

import com.wjb.config.FeignConfiguration2;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(name = "xxxx",url = "http://localhost:1111/",configuration = FeignConfiguration2.class)
public interface FeignClient2 {
    @RequestMapping(value = "/eureka/apps/{servicename}",method = RequestMethod.GET)
    public String findnamebyname(@PathVariable("servicename") String servicename);
}
